﻿@model TCM.Exam

@{
    ViewBag.Title = "Edit";
} 

<h2>Edit Exam</h2>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    
    <table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
                <span class="FormTitle">@Html.DisplayFor(model => model.Name)</span></td>
        </tr>
    </table>

    <fieldset>
        <legend>Exam</legend>
        <ol>
       @* <li class="editor-label" style="display: none">
            @Html.LabelFor(model => model.ExamID)
        </li>
        <li class="editor-field" style="display: none">
            @Html.EditorFor(model => model.ExamID)
        </li>*@

         @Html.HiddenFor(Model=> Model.ExamID)

        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
       
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.NameAr)
       
            @Html.EditorFor(model => model.NameAr)
            @Html.ValidationMessageFor(model => model.NameAr)
        </li>

        @*<li class="editor-label">
            @Html.LabelFor(model => model.Title)
       
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.TitleAr)
       
            @Html.EditorFor(model => model.TitleAr)
            @Html.ValidationMessageFor(model => model.TitleAr)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Date)
       
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Type)
       
            @Html.DropDownList("Type", String.Empty)      
            @Html.ValidationMessageFor(model => model.Type)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.PLACEMENTTEST)
       
            @*@Html.DisplayFor(model => model.PLACEMENTTEST)*@
            @Html.DropDownList("PLACEMENTTEST", String.Empty) 
            @Html.ValidationMessageFor(model => model.StatusID)
        </li>       

         <li class="editor-label">
            @Html.LabelFor(model => model.StatusID)
     
            @Html.DropDownList("statusid", String.Empty)                 
            @Html.ValidationMessageFor(model => model.StatusID)
        </li>        

         <li class="display-label">
         @Html.DisplayNameFor(model => model.DeleteCode)
       
            @Html.DisplayFor(model => model.DeleteCode)
        </li>

          <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedBy)
      
            @Html.DisplayFor(model => model.CreatedBy)
        </li>               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedOn)
  
            @Html.DisplayFor(model => model.CreatedOn)
        </li>
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedBy)
        
            @Html.DisplayFor(model => model.ModifiedBy)
        </li>
               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedOn)
       
            @Html.DisplayFor(model => model.ModifiedOn)
        </li>     
          <li class="display-label">
         @Html.DisplayNameFor(model => model.OwnerID)
       
            @Html.DisplayFor(model => model.OwnerID)
        </li>
              </ol>
        <p>
            <input type="submit" value="Save" />
        </p>
      
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<script type="text/javascript">
    $('#Date').datepicker();
</script>